package com.ssly.weixin.xichang.common.repository;


import com.ssly.weixin.xichang.common.domain.VerifyCode;
import org.springframework.data.jpa.datatables.repository.DataTablesRepository;

import java.util.Optional;

public interface VerifyCodeRepository extends DataTablesRepository<VerifyCode,Integer> {
    Optional<VerifyCode> findTopByPhoneOrderByCreateTimeDesc(String phone);
}
